package com.tczs.server.request;

import org.apache.log4j.Logger;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractServerBuildRequest implements ServerBuildRequest{

    /**
     * get请求切割第一行得到method,url
     * @param request
     * @return
     */
    public abstract ServerRequestModel getParamFromFirstLine(ServerRequestModel request);

    /**
     * 从各种请求方式(get,post)中获取params
     * @param request
     * @param obj
     * @return
     */
    public abstract ServerRequestModel getParamFromMethod(ServerRequestModel request,String method,Object obj);

    /**
     * 从请求头中补足必要的请求信息
     * @param request
     * @param array
     * @return
     */
    public abstract ServerRequestModel completeRequest(ServerRequestModel request,String[] array);


}
